<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            height: 100vh;
            display: flex;
            flex-direction: column;
        }
        main{
            background: #ddd;
            flex: 1;
        }
        footer{
            height: 50px;
            background: linear-gradient(to top, #f3f3f3, #ccc, #f3f3f3);
            display: flex;
        }
        footer div{
            flex: 1;
            /* width: 25%; */
            line-height: 50px;
            text-align: center;
            color: #555;
        }
        footer div:hover{
            background-color: #ff6700;
            color: #fff;
        }
        footer div:nth-child(n+2) {
            border-left: 1px solid #ccc;
        }
    </style>
</head>
<body>
    <main>111</main>
    <footer>
        <div>华仔</div>
        <div>东仔</div>
        <div>苏州</div>
        <div>建河</div>
    </footer>
</body>
</html>